package com.example.coursehub.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "question", schema = "courseHub")
public class Question {
    @Id
    @Column(name = "question_id", nullable = false, length = 100)
    private String questionId;

    @Column(name = "question_score", columnDefinition = "int UNSIGNED not null")
    private Long questionScore;

    @Column(name = "type", nullable = false)
    private Boolean type = false;

    @Column(name = "question_content", nullable = false, length = 1000)
    private String questionContent;

    @Column(name = "question_answer", nullable = false, length = 1000)
    private String questionAnswer;

}